package com.sxz.sbs.module.client.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by hp on 2018/1/16.
 * 交易记录
 */

public class DealRecordBean {


    /**
     * lastPage : true
     * pageSize : 10
     * pageNumber : 1
     * firstPage : true
     * list : [{"tempcolumn":0,"address":"连云港路20号 ","parkingName":"7080中心","Number":"","spaceId":55605,"temprownumber":1},{"tempcolumn":0,"address":"连云港路20号 ","parkingName":"7080中心","Number":"","spaceId":55605,"temprownumber":2},{"tempcolumn":0,"address":"连云港路20号 ","parkingName":"7080中心","Number":"","spaceId":55605,"temprownumber":3},{"tempcolumn":0,"address":"连云港路20号 ","parkingName":"7080中心","Number":"","spaceId":55605,"temprownumber":4}]
     * totalRow : 4
     * totalPage : 1
     */

    private boolean lastPage;
    private int pageSize;
    private int pageNumber;
    private boolean firstPage;
    private int totalRow;
    private int totalPage;
    private List<ListBean> list;

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public int getTotalRow() {
        return totalRow;
    }

    public void setTotalRow(int totalRow) {
        this.totalRow = totalRow;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * tempcolumn : 0
         * address : 连云港路20号
         * parkingName : 7080中心
         * Number :
         * spaceId : 55605
         * temprownumber : 1
         */

        private int tempcolumn;
        private String address;
        private String parkingName;
        private String Number;
        private int spaceId;
        private int temprownumber;

        public int getTempcolumn() {
            return tempcolumn;
        }

        public void setTempcolumn(int tempcolumn) {
            this.tempcolumn = tempcolumn;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getParkingName() {
            return parkingName;
        }

        public void setParkingName(String parkingName) {
            this.parkingName = parkingName;
        }

        public String getNumber() {
            return Number;
        }

        public void setNumber(String Number) {
            this.Number = Number;
        }

        public int getSpaceId() {
            return spaceId;
        }

        public void setSpaceId(int spaceId) {
            this.spaceId = spaceId;
        }

        public int getTemprownumber() {
            return temprownumber;
        }

        public void setTemprownumber(int temprownumber) {
            this.temprownumber = temprownumber;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.tempcolumn);
            dest.writeString(this.address);
            dest.writeString(this.parkingName);
            dest.writeString(this.Number);
            dest.writeInt(this.spaceId);
            dest.writeInt(this.temprownumber);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.tempcolumn = in.readInt();
            this.address = in.readString();
            this.parkingName = in.readString();
            this.Number = in.readString();
            this.spaceId = in.readInt();
            this.temprownumber = in.readInt();
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }
}
